/*
 * Copyright (c) 2024 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import React, { useEffect } from 'react';
import { LogBox, SafeAreaView, StyleSheet } from 'react-native';
import SongList from './view/SongList';
import { useBreakpointValue } from '@hadss/react_native_adaptive_layout/src';
import { setBreakpoints } from '@hadss/react_native_adaptive_layout/src';
import MusicPlay from '../MusicPlay/MusicPlayPage';

function PlayList() {
    const isLarge = useBreakpointValue({
        base: false,
        sm: false,
        md: false,
        lg: true,
        xl: true,
    });

    useEffect(() => {
        LogBox.ignoreAllLogs();
        setBreakpoints({
            base: 0,
            xs: 320,
            sm: 600,
            md: 1056,
            lg: 1440,
            xl: 1440,
        });
    });

    return (
        <SafeAreaView style={styles.container}>
            {/* {isLarge ? <SongListTable /> : <SongList />} */}
            {/* <SongList /> */}
            <MusicPlay />
        </SafeAreaView>
    );
}

const styles = StyleSheet.create({
    container: {
        flex: 1,
        backgroundColor: 'rgb(239, 239, 239)',
        width: '100%',
        height: '100%',
    },
    geometryView: {
        position: 'absolute',
        width: 60,
        height: 60,
        backgroundColor: 'red',
    },
});

export default PlayList;
